#!/bin/bash
npm run build
cd dist
tar -zcvf ../dist.tar.gz .
cd ..
chmod 755 dist.tar.gz 
# ftp -pniv 43.228.182.78<<EOF
# user nft_thegamefi_io cGf88RWiEGLaZWPR
# binary
# cd /
# prompt
# mput dist.tar.gz
# bye
# EOF
scp dist.tar.gz root@fullnode:/www/wwwroot/nft.thegamefi.io
echo "commit to ftp successfully"
ssh root@fullnode "/root/install/nft-deploy.sh"
rm -rf dist.tar.gz
# lcd /Users/stephen/Projects/AiArt/aiwebapp
# !ls